using System;

namespace Sonce.Editor.Data
{
	public class Document : IPrimaryKey
	{
		public System.Int32 Id { get; set; }
		public System.String Title { get; set; }
	}
	
	public class Node : IPrimaryKey
	{
		public System.Int32 Id { get; set; }
		public System.Int32 DocumentId { get; set; }
		public System.String Label { get; set; }
		public System.Double X { get; set; }
		public System.Double Y { get; set; }
	}
	
	public class Branch : IPrimaryKey
	{
		public System.Int32 Id { get; set; }
		public System.Int32 DocumentId { get; set; }
		public System.Int32 StartNodeId { get; set; }
		public System.Int32 StopNodeId { get; set; }
		public System.Int32 ElementId { get; set; }
		public System.String Label { get; set; }
	}
	
	public class Element : IPrimaryKey
	{
		public System.Int32 Id { get; set; }
		public System.Int32 DocumentId { get; set; }
		public System.Int32 ElementPrototypeId { get; set; }
		public System.String Label { get; set; }
		public System.Double X { get; set; }
		public System.Double Y { get; set; }
		public System.Double Angle { get; set; }
		public System.String Value { get; set; }
	}
	
	public class ElementPrototype : IPrimaryKey
	{
		public System.Int32 Id { get; set; }
		public System.String Name { get; set; }
		public System.String Type { get; set; }
		public System.String Xaml { get; set; }
	}
	

}